/**
 * @name TodoListDemo
 * @desc
 * @author
 * @version
 */

import React, { Component } from "react"
import { TodoList } from "@/components"

class TodoListDemo extends Component {
    state = {
        list: []
    }

    onListUpdate = list => this.setState({ list })

    render() {
        return (
            <div>
                <TodoList list={this.state.list} onListUpdate={this.onListUpdate} />
            </div>
        )
    }
}

export default TodoListDemo
